package advisor;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import analyzer.Consultation;
import pokemon.Pokemon;

public class AdvancedAdvisor {
	private List<Advisor> advisors;
	private List<Consultation> consultations;
	
	public AdvancedAdvisor(Pokemon pokemon) {
		super();
		advisors = new ArrayList<Advisor>();
		consultations = new ArrayList<Consultation>();
	}
	
	public void addAdvisors(Advisor advisor) {
		advisors.add(advisor);
	}

	public void deleteAdvisors(int indx) {
		advisors.remove(indx);
	}
	
	private void work() throws CloneNotSupportedException {
		consultations.clear();
		for(Advisor advisor : advisors) {
			consultations.add(advisor.getConsultation());
		}
	}
	
	public List<Consultation> getConsultations() {
		work();
		return new ArrayList<Consultation>(consultations);
	}
	
	private void addConsultation(Consultation consultation){
		consultations.add(consultation);
	}	
}
